<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::AbstractLoss&lt; LabelT, OutputT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_abstract_loss.html">AbstractLoss</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_abstract_loss-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::AbstractLoss&lt; LabelT, OutputT &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__lossfunctions.html">Loss Functions</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Loss function interface.  
 <a href="classshark_1_1_abstract_loss.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_abstract_loss_8h_source.html">shark/ObjectiveFunctions/Loss/AbstractLoss.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::AbstractLoss&lt; LabelT, OutputT &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_abstract_loss__inherit__graph.png" border="0" usemap="#ashark_1_1_abstract_loss_3_01_label_t_00_01_output_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_abstract_loss_3_01_label_t_00_01_output_t_01_4_inherit__map" id="ashark_1_1_abstract_loss_3_01_label_t_00_01_output_t_01_4_inherit__map">
<area shape="rect" title="Loss function interface." alt="" coords="192,71,330,111"/>
<area shape="rect" href="classshark_1_1_absolute_loss.html" title="absolute loss" alt="" coords="398,5,538,46"/>
<area shape="poly" title=" " alt="" coords="341,63,400,44,402,49,343,68"/>
<area shape="rect" href="classshark_1_1_squared_loss.html" title="squared loss for regression and classification" alt="" coords="378,71,557,111"/>
<area shape="poly" title=" " alt="" coords="345,88,378,88,378,94,345,94"/>
<area shape="rect" href="classshark_1_1_zero_one_loss.html" title="0&#45;1&#45;loss for classification." alt="" coords="378,136,557,177"/>
<area shape="poly" title=" " alt="" coords="343,114,402,133,400,138,341,119"/>
<area shape="rect" href="classshark_1_1_abstract_cost.html" title="Cost function interface." alt="" coords="5,71,144,111"/>
<area shape="poly" title=" " alt="" coords="160,88,191,88,191,94,160,94"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aff632efe5055d1f07de94a790b222b85" id="r_aff632efe5055d1f07de94a790b222b85"><td class="memItemLeft" align="right" valign="top">typedef OutputT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a></td></tr>
<tr class="separator:aff632efe5055d1f07de94a790b222b85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a5e866edf2da03bb50778d2271c01da" id="r_a1a5e866edf2da03bb50778d2271c01da"><td class="memItemLeft" align="right" valign="top">typedef LabelT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a></td></tr>
<tr class="separator:a1a5e866edf2da03bb50778d2271c01da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87fa1fa41bb3c1d5ce75137428724536" id="r_a87fa1fa41bb3c1d5ce75137428724536"><td class="memItemLeft" align="right" valign="top">typedef RealMatrix&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a87fa1fa41bb3c1d5ce75137428724536">MatrixType</a></td></tr>
<tr class="separator:a87fa1fa41bb3c1d5ce75137428724536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3a1a01831f11b5357d6005837ac245b" id="r_ac3a1a01831f11b5357d6005837ac245b"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a></td></tr>
<tr class="separator:ac3a1a01831f11b5357d6005837ac245b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e6cc93c4d6599c219d396dcab81e938" id="r_a6e6cc93c4d6599c219d396dcab81e938"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a></td></tr>
<tr class="separator:a6e6cc93c4d6599c219d396dcab81e938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac52e23c4acfdb2d08b55420101eee787" id="r_ac52e23c4acfdb2d08b55420101eee787"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt; LabelTypeconst &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a></td></tr>
<tr class="memdesc:ac52e23c4acfdb2d08b55420101eee787"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to LabelType.  <br /></td></tr>
<tr class="separator:ac52e23c4acfdb2d08b55420101eee787"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50b1635725e3a6bbb6017a6e3c4a52ca" id="r_a50b1635725e3a6bbb6017a6e3c4a52ca"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt; OutputTypeconst &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a></td></tr>
<tr class="memdesc:a50b1635725e3a6bbb6017a6e3c4a52ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Const references to OutputType.  <br /></td></tr>
<tr class="separator:a50b1635725e3a6bbb6017a6e3c4a52ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_cost"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_cost')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_cost.html">shark::AbstractCost&lt; LabelT, OutputT &gt;</a></td></tr>
<tr class="memitem:a3f2ae17818520465f0e73257fd202bac inherit pub_types_classshark_1_1_abstract_cost" id="r_a3f2ae17818520465f0e73257fd202bac"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bac">Feature</a> { <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bacad1e0927ebd68caf428c52cc4cecc084a">HAS_FIRST_DERIVATIVE</a> = 1
, <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202baca757525584b3fc0a7aa977255fd6d8232">HAS_SECOND_DERIVATIVE</a> = 2
, <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bacaaa945f1c8fb58952a4dbea1a1ff86231">IS_LOSS_FUNCTION</a> = 4
 }</td></tr>
<tr class="memdesc:a3f2ae17818520465f0e73257fd202bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">list of features a cost function can have  <a href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bac">More...</a><br /></td></tr>
<tr class="separator:a3f2ae17818520465f0e73257fd202bac inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad35be71a61620930c1b6c44aecb7c33 inherit pub_types_classshark_1_1_abstract_cost" id="r_aad35be71a61620930c1b6c44aecb7c33"><td class="memItemLeft" align="right" valign="top">typedef OutputT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#aad35be71a61620930c1b6c44aecb7c33">OutputType</a></td></tr>
<tr class="separator:aad35be71a61620930c1b6c44aecb7c33 inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0d1c0437931e46d5b6192b214bc6f59 inherit pub_types_classshark_1_1_abstract_cost" id="r_aa0d1c0437931e46d5b6192b214bc6f59"><td class="memItemLeft" align="right" valign="top">typedef LabelT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#aa0d1c0437931e46d5b6192b214bc6f59">LabelType</a></td></tr>
<tr class="separator:aa0d1c0437931e46d5b6192b214bc6f59 inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34c29a41e3dc317b2c97a49e2dbe5da4 inherit pub_types_classshark_1_1_abstract_cost" id="r_a34c29a41e3dc317b2c97a49e2dbe5da4"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#aad35be71a61620930c1b6c44aecb7c33">OutputType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a34c29a41e3dc317b2c97a49e2dbe5da4">BatchOutputType</a></td></tr>
<tr class="separator:a34c29a41e3dc317b2c97a49e2dbe5da4 inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae76592e18c367f68e9456e76acc35c03 inherit pub_types_classshark_1_1_abstract_cost" id="r_ae76592e18c367f68e9456e76acc35c03"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#aa0d1c0437931e46d5b6192b214bc6f59">LabelType</a> &gt;::type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#ae76592e18c367f68e9456e76acc35c03">BatchLabelType</a></td></tr>
<tr class="separator:ae76592e18c367f68e9456e76acc35c03 inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e8014268b6aa7215900d43a291eae5 inherit pub_types_classshark_1_1_abstract_cost" id="r_a65e8014268b6aa7215900d43a291eae5"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_flags.html">TypedFlags</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bac">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a65e8014268b6aa7215900d43a291eae5">Features</a></td></tr>
<tr class="separator:a65e8014268b6aa7215900d43a291eae5 inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24a1a53503c39eeeae1d7b3d43fd120f inherit pub_types_classshark_1_1_abstract_cost" id="r_a24a1a53503c39eeeae1d7b3d43fd120f"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_typed_feature_not_available_exception.html">TypedFeatureNotAvailableException</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bac">Feature</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a24a1a53503c39eeeae1d7b3d43fd120f">FeatureNotAvailableException</a></td></tr>
<tr class="separator:a24a1a53503c39eeeae1d7b3d43fd120f inherit pub_types_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aae8049c358e6ccfece94d4a978306c4c" id="r_aae8049c358e6ccfece94d4a978306c4c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#aae8049c358e6ccfece94d4a978306c4c">AbstractLoss</a> ()</td></tr>
<tr class="separator:aae8049c358e6ccfece94d4a978306c4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad57cb10f610d506e522f707563acabb8" id="r_ad57cb10f610d506e522f707563acabb8"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#ad57cb10f610d506e522f707563acabb8">eval</a> (<a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;target, <a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;prediction) const =0</td></tr>
<tr class="memdesc:ad57cb10f610d506e522f707563acabb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss for a batch of targets and a prediction  <br /></td></tr>
<tr class="separator:ad57cb10f610d506e522f707563acabb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f69483e0f62462bbc45e2734f65a4b" id="r_a26f69483e0f62462bbc45e2734f65a4b"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a26f69483e0f62462bbc45e2734f65a4b">eval</a> (<a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a> target, <a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a> prediction) const</td></tr>
<tr class="memdesc:a26f69483e0f62462bbc45e2734f65a4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss for a target and a prediction  <br /></td></tr>
<tr class="separator:a26f69483e0f62462bbc45e2734f65a4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71706ed4c40d1635db1c372ecf5c8686" id="r_a71706ed4c40d1635db1c372ecf5c8686"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a71706ed4c40d1635db1c372ecf5c8686">evalDerivative</a> (<a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a> target, <a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a> prediction, <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &amp;gradient) const</td></tr>
<tr class="memdesc:a71706ed4c40d1635db1c372ecf5c8686"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss and its derivative for a target and a prediction  <br /></td></tr>
<tr class="separator:a71706ed4c40d1635db1c372ecf5c8686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bde41258ced1db72e467f26d2439d0c" id="r_a7bde41258ced1db72e467f26d2439d0c"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a7bde41258ced1db72e467f26d2439d0c">evalDerivative</a> (<a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a> target, <a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a> prediction, <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &amp;gradient, <a class="el" href="classshark_1_1_abstract_loss.html#a87fa1fa41bb3c1d5ce75137428724536">MatrixType</a> &amp;hessian) const</td></tr>
<tr class="memdesc:a7bde41258ced1db72e467f26d2439d0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss and its first and second derivative for a target and a prediction  <br /></td></tr>
<tr class="separator:a7bde41258ced1db72e467f26d2439d0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaff8e4357ab4257d46025368575aac15" id="r_aaff8e4357ab4257d46025368575aac15"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#aaff8e4357ab4257d46025368575aac15">evalDerivative</a> (<a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;target, <a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;prediction, <a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> &amp;gradient) const</td></tr>
<tr class="memdesc:aaff8e4357ab4257d46025368575aac15"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss and the derivative w.r.t. the prediction  <br /></td></tr>
<tr class="separator:aaff8e4357ab4257d46025368575aac15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d53dd678d58b2cb3a213cdc829937da" id="r_a0d53dd678d58b2cb3a213cdc829937da"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a0d53dd678d58b2cb3a213cdc829937da">eval</a> (<a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a> &gt; const &amp;targets, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &gt; const &amp;predictions) const</td></tr>
<tr class="separator:a0d53dd678d58b2cb3a213cdc829937da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a235a058270db9218fd889391d0385047" id="r_a235a058270db9218fd889391d0385047"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#a235a058270db9218fd889391d0385047">operator()</a> (<a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a> const &amp;target, <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> const &amp;prediction) const</td></tr>
<tr class="memdesc:a235a058270db9218fd889391d0385047"><td class="mdescLeft">&#160;</td><td class="mdescRight">evaluate the loss for a target and a prediction  <br /></td></tr>
<tr class="separator:a235a058270db9218fd889391d0385047"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad232712edcc7a2df8bf2bc4936ae93f9" id="r_ad232712edcc7a2df8bf2bc4936ae93f9"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_loss.html#ad232712edcc7a2df8bf2bc4936ae93f9">operator()</a> (<a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;target, <a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;prediction) const</td></tr>
<tr class="separator:ad232712edcc7a2df8bf2bc4936ae93f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_cost"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_cost')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_cost.html">shark::AbstractCost&lt; LabelT, OutputT &gt;</a></td></tr>
<tr class="memitem:a08169d91360192c906792ffe9a07f14f inherit pub_methods_classshark_1_1_abstract_cost" id="r_a08169d91360192c906792ffe9a07f14f"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a08169d91360192c906792ffe9a07f14f">~AbstractCost</a> ()</td></tr>
<tr class="separator:a08169d91360192c906792ffe9a07f14f inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade575e40884a417f5afa3e1a67ec9086 inherit pub_methods_classshark_1_1_abstract_cost" id="r_ade575e40884a417f5afa3e1a67ec9086"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classshark_1_1_abstract_cost.html#a65e8014268b6aa7215900d43a291eae5">Features</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#ade575e40884a417f5afa3e1a67ec9086">features</a> () const</td></tr>
<tr class="separator:ade575e40884a417f5afa3e1a67ec9086 inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34f65782895f7d2018970e3f961f19f7 inherit pub_methods_classshark_1_1_abstract_cost" id="r_a34f65782895f7d2018970e3f961f19f7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a34f65782895f7d2018970e3f961f19f7">updateFeatures</a> ()</td></tr>
<tr class="separator:a34f65782895f7d2018970e3f961f19f7 inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5aef444b7ef11ba6b31c8b2b0a9c24c8 inherit pub_methods_classshark_1_1_abstract_cost" id="r_a5aef444b7ef11ba6b31c8b2b0a9c24c8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a5aef444b7ef11ba6b31c8b2b0a9c24c8">hasFirstDerivative</a> () const</td></tr>
<tr class="memdesc:a5aef444b7ef11ba6b31c8b2b0a9c24c8 inherit pub_methods_classshark_1_1_abstract_cost"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true when the first parameter derivative is implemented  <br /></td></tr>
<tr class="separator:a5aef444b7ef11ba6b31c8b2b0a9c24c8 inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9a59d0fffd49c260995c05820723029 inherit pub_methods_classshark_1_1_abstract_cost" id="r_aa9a59d0fffd49c260995c05820723029"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#aa9a59d0fffd49c260995c05820723029">isLossFunction</a> () const</td></tr>
<tr class="memdesc:aa9a59d0fffd49c260995c05820723029 inherit pub_methods_classshark_1_1_abstract_cost"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true when the cost function is in fact a loss function  <br /></td></tr>
<tr class="separator:aa9a59d0fffd49c260995c05820723029 inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab299a1d05b8592018de7df84c1928d42 inherit pub_methods_classshark_1_1_abstract_cost" id="r_ab299a1d05b8592018de7df84c1928d42"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#ab299a1d05b8592018de7df84c1928d42">operator()</a> (<a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#aa0d1c0437931e46d5b6192b214bc6f59">LabelType</a> &gt; const &amp;targets, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_cost.html#aad35be71a61620930c1b6c44aecb7c33">OutputType</a> &gt; const &amp;predictions) const</td></tr>
<tr class="separator:ab299a1d05b8592018de7df84c1928d42 inherit pub_methods_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable" id="r_a9893f99314de30cd472e649c235d0db4"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">name</a> () const</td></tr>
<tr class="memdesc:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the name of the object  <br /></td></tr>
<tr class="separator:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classshark_1_1_abstract_cost"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classshark_1_1_abstract_cost')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classshark_1_1_abstract_cost.html">shark::AbstractCost&lt; LabelT, OutputT &gt;</a></td></tr>
<tr class="memitem:a97902a8a75733642a4472b463ae9b7dc inherit pro_attribs_classshark_1_1_abstract_cost" id="r_a97902a8a75733642a4472b463ae9b7dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_cost.html#a65e8014268b6aa7215900d43a291eae5">Features</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_cost.html#a97902a8a75733642a4472b463ae9b7dc">m_features</a></td></tr>
<tr class="separator:a97902a8a75733642a4472b463ae9b7dc inherit pro_attribs_classshark_1_1_abstract_cost"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class LabelT, class OutputT = LabelT&gt;<br />
class shark::AbstractLoss&lt; LabelT, OutputT &gt;</div><p>Loss function interface. </p>
<dl class="section user"><dt></dt><dd>In statistics and machine learning, a loss function encodes the severity of getting a label wrong. This is am important special case of a cost function (see <a class="el" href="classshark_1_1_abstract_cost.html" title="Cost function interface.">AbstractCost</a>), where the cost is computed as the average loss over a set, also known as (empirical) risk.</dd></dl>
<dl class="section user"><dt></dt><dd>It is generally agreed that loss values are non-negative, and that the loss of correct prediction is zero. This rule is not formally checked, but instead left to the various sub-classes. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00062">62</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a6e6cc93c4d6599c219d396dcab81e938" name="a6e6cc93c4d6599c219d396dcab81e938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e6cc93c4d6599c219d396dcab81e938">&#9670;&#160;</a></span>BatchLabelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt;<a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a>&gt;::type <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::BatchLabelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00071">71</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="ac3a1a01831f11b5357d6005837ac245b" name="ac3a1a01831f11b5357d6005837ac245b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3a1a01831f11b5357d6005837ac245b">&#9670;&#160;</a></span>BatchOutputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_batch.html">Batch</a>&lt;<a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a>&gt;::type <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::BatchOutputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00070">70</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="ac52e23c4acfdb2d08b55420101eee787" name="ac52e23c4acfdb2d08b55420101eee787"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac52e23c4acfdb2d08b55420101eee787">&#9670;&#160;</a></span>ConstLabelReference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt;LabelTypeconst&gt;::type <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::ConstLabelReference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Const references to LabelType. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00074">74</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="a50b1635725e3a6bbb6017a6e3c4a52ca" name="a50b1635725e3a6bbb6017a6e3c4a52ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50b1635725e3a6bbb6017a6e3c4a52ca">&#9670;&#160;</a></span>ConstOutputReference</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="structshark_1_1_const_proxy_reference.html">ConstProxyReference</a>&lt;OutputTypeconst&gt;::type <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::ConstOutputReference</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Const references to OutputType. </p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00076">76</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="a1a5e866edf2da03bb50778d2271c01da" name="a1a5e866edf2da03bb50778d2271c01da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a5e866edf2da03bb50778d2271c01da">&#9670;&#160;</a></span>LabelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef LabelT <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::LabelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00067">67</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="a87fa1fa41bb3c1d5ce75137428724536" name="a87fa1fa41bb3c1d5ce75137428724536"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87fa1fa41bb3c1d5ce75137428724536">&#9670;&#160;</a></span>MatrixType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef RealMatrix <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;<a class="el" href="_mc_svm_linear_8cpp.html#a88ab98d46276376a56c2a396842cd58e">::MatrixType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00068">68</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<a id="aff632efe5055d1f07de94a790b222b85" name="aff632efe5055d1f07de94a790b222b85"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff632efe5055d1f07de94a790b222b85">&#9670;&#160;</a></span>OutputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef OutputT <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::OutputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00066">66</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aae8049c358e6ccfece94d4a978306c4c" name="aae8049c358e6ccfece94d4a978306c4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae8049c358e6ccfece94d4a978306c4c">&#9670;&#160;</a></span>AbstractLoss()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::AbstractLoss </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00078">78</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bacaaa945f1c8fb58952a4dbea1a1ff86231">shark::AbstractCost&lt; LabelT, OutputT &gt;::IS_LOSS_FUNCTION</a>, and <a class="el" href="classshark_1_1_abstract_cost.html#a97902a8a75733642a4472b463ae9b7dc">shark::AbstractCost&lt; LabelT, OutputT &gt;::m_features</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad57cb10f610d506e522f707563acabb8" name="ad57cb10f610d506e522f707563acabb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad57cb10f610d506e522f707563acabb8">&#9670;&#160;</a></span>eval() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>prediction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss for a batch of targets and a prediction </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target values </td></tr>
    <tr><td class="paramname">prediction</td><td>predictions, typically made by a model </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="classshark_1_1_absolute_loss.html#a9799217c0a23c4af54646093a7230946">shark::AbsoluteLoss&lt; VectorType &gt;</a>, <a class="el" href="classshark_1_1_epsilon_hinge_loss.html#aebff1ddcb9f0ce35f93d29d8d6bd458c">shark::EpsilonHingeLoss</a>, <a class="el" href="classshark_1_1_hinge_loss.html#a0143b583b4942d11752ca658032f1394">shark::HingeLoss</a>, <a class="el" href="classshark_1_1_huber_loss.html#ada8b44c0681261618d2878f9ff41e718">shark::HuberLoss</a>, <a class="el" href="classshark_1_1_squared_epsilon_hinge_loss.html#a798597a7b89c708b0f5b271444841a9c">shark::SquaredEpsilonHingeLoss</a>, <a class="el" href="classshark_1_1_squared_hinge_loss.html#a65618ed172bb6452953fa8f113975881">shark::SquaredHingeLoss</a>, <a class="el" href="classshark_1_1_squared_loss.html#a008effb959fd46a659caea8c651529f6">shark::SquaredLoss&lt; OutputType, LabelType &gt;</a>, <a class="el" href="classshark_1_1_squared_loss_3_01_output_type_00_01unsigned_01int_01_4.html#abe143c0109604bf20b41a7740c0b6b8e">shark::SquaredLoss&lt; OutputType, unsigned int &gt;</a>, <a class="el" href="classshark_1_1_squared_loss_3_01_sequence_00_01_sequence_01_4.html#a29691a1939b6513d200fdb8d3fe4f13a">shark::SquaredLoss&lt; Sequence, Sequence &gt;</a>, <a class="el" href="classshark_1_1_zero_one_loss.html#acba6670d53701d50eed0ecdbc1114175">shark::ZeroOneLoss&lt; LabelType, OutputType &gt;</a>, <a class="el" href="classshark_1_1_zero_one_loss_3_01unsigned_01int_00_01blas_1_1vector_3_01_float_01_4_01_4.html#a392993dc623f198949955e4fdb5b9d2a">shark::ZeroOneLoss&lt; unsigned int, blas::vector&lt; Float &gt; &gt;</a>, <a class="el" href="classshark_1_1_discrete_loss.html#a4852a414feeed09857677ba5e101429a">shark::DiscreteLoss</a>, <a class="el" href="classshark_1_1_absolute_loss.html#add4a2b4308ff290a10552824fdb33550">shark::AbsoluteLoss&lt; VectorType &gt;</a>, <a class="el" href="classshark_1_1_cross_entropy_3_01blas_1_1vector_3_01_t_00_01_device_01_4_00_01blas_1_1vector_3_01_t_00_01_device_01_4_01_4.html#add4a2b4308ff290a10552824fdb33550">shark::CrossEntropy&lt; blas::vector&lt; T, Device &gt;, blas::vector&lt; T, Device &gt; &gt;</a>, <a class="el" href="classshark_1_1_squared_loss.html#add4a2b4308ff290a10552824fdb33550">shark::SquaredLoss&lt; OutputType, LabelType &gt;</a>, and <a class="el" href="classshark_1_1_zero_one_loss.html#add4a2b4308ff290a10552824fdb33550">shark::ZeroOneLoss&lt; LabelType, OutputType &gt;</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_loo_error.html#ac21fc9ca54e8f324cc6136bc5cebb121">shark::LooError&lt; ModelTypeT, LabelType &gt;::eval()</a>, <a class="el" href="classshark_1_1_abstract_loss.html#a26f69483e0f62462bbc45e2734f65a4b">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>, <a class="el" href="classshark_1_1_abstract_loss.html#a0d53dd678d58b2cb3a213cdc829937da">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>, <a class="el" href="classshark_1_1_abstract_loss.html#ad232712edcc7a2df8bf2bc4936ae93f9">shark::AbstractLoss&lt; LabelT, OutputT &gt;::operator()()</a>, and <a class="el" href="classshark_1_1_abstract_loss.html#a235a058270db9218fd889391d0385047">shark::AbstractLoss&lt; LabelT, OutputT &gt;::operator()()</a>.</p>

</div>
</div>
<a id="a26f69483e0f62462bbc45e2734f65a4b" name="a26f69483e0f62462bbc45e2734f65a4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26f69483e0f62462bbc45e2734f65a4b">&#9670;&#160;</a></span>eval() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a>&#160;</td>
          <td class="paramname"><em>prediction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss for a target and a prediction </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target value </td></tr>
    <tr><td class="paramname">prediction</td><td>prediction, typically made by a model </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classshark_1_1_absolute_loss.html#a26f69483e0f62462bbc45e2734f65a4b">shark::AbsoluteLoss&lt; VectorType &gt;</a>, <a class="el" href="classshark_1_1_cross_entropy_3_01unsigned_01int_00_01_output_type_01_4.html#a07fbea8cabdb5f573d4376e7bfda77e0">shark::CrossEntropy&lt; unsigned int, OutputType &gt;</a>, <a class="el" href="classshark_1_1_cross_entropy_3_01blas_1_1vector_3_01_t_00_01_device_01_4_00_01blas_1_1vector_3_01_t_00_01_device_01_4_01_4.html#a26f69483e0f62462bbc45e2734f65a4b">shark::CrossEntropy&lt; blas::vector&lt; T, Device &gt;, blas::vector&lt; T, Device &gt; &gt;</a>, <a class="el" href="classshark_1_1_squared_loss.html#a26f69483e0f62462bbc45e2734f65a4b">shark::SquaredLoss&lt; OutputType, LabelType &gt;</a>, and <a class="el" href="classshark_1_1_zero_one_loss.html#a26f69483e0f62462bbc45e2734f65a4b">shark::ZeroOneLoss&lt; LabelType, OutputType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00092">92</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_loss.html#ad57cb10f610d506e522f707563acabb8">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>, and <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>.</p>

</div>
</div>
<a id="a0d53dd678d58b2cb3a213cdc829937da" name="a0d53dd678d58b2cb3a213cdc829937da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d53dd678d58b2cb3a213cdc829937da">&#9670;&#160;</a></span>eval() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::eval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>targets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>predictions</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>from <a class="el" href="classshark_1_1_abstract_cost.html" title="Cost function interface.">AbstractCost</a></p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">targets</td><td>target values </td></tr>
    <tr><td class="paramname">predictions</td><td>predictions, typically made by a model </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classshark_1_1_abstract_cost.html#ab59cf559ad6f04d07752ffdcda155723">shark::AbstractCost&lt; LabelT, OutputT &gt;</a>.</p>

<p>Reimplemented in <a class="el" href="classshark_1_1_squared_loss.html#a0d53dd678d58b2cb3a213cdc829937da">shark::SquaredLoss&lt; OutputType, LabelType &gt;</a>, and <a class="el" href="classshark_1_1_zero_one_loss.html#a0d53dd678d58b2cb3a213cdc829937da">shark::ZeroOneLoss&lt; LabelType, OutputType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00149">149</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="group__shark__globals.html#ga73034ee5639176b0d45e1059859d0f0a">shark::Data&lt; Type &gt;::batch()</a>, <a class="el" href="classshark_1_1_abstract_loss.html#ad57cb10f610d506e522f707563acabb8">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>, <a class="el" href="group__shark__globals.html#gabd82edf467b9b82f4b0a1e70fd695311">shark::Data&lt; Type &gt;::numberOfBatches()</a>, <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>, <a class="el" href="_open_m_p_8h.html#a6de33df9d72bea69f903cffb391e7121">SHARK_CRITICAL_REGION</a>, <a class="el" href="_open_m_p_8h.html#a8a63d79e2c3625260e6092d933f21a98">SHARK_PARALLEL_FOR</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<a id="aaff8e4357ab4257d46025368575aac15" name="aaff8e4357ab4257d46025368575aac15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaff8e4357ab4257d46025368575aac15">&#9670;&#160;</a></span>evalDerivative() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::evalDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>prediction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss and the derivative w.r.t. the prediction </p>
<dl class="section user"><dt></dt><dd>The default implementations throws an exception. If you overwrite this method, don't forget to set the flag HAS_FIRST_DERIVATIVE. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target value </td></tr>
    <tr><td class="paramname">prediction</td><td>prediction, typically made by a model </td></tr>
    <tr><td class="paramname">gradient</td><td>the gradient of the loss function with respect to the prediction </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classshark_1_1_squared_loss.html#a5b0f3b5bc5125e81aa93dd9900863567">shark::SquaredLoss&lt; OutputType, LabelType &gt;</a>, <a class="el" href="classshark_1_1_epsilon_hinge_loss.html#a19cc6b04b744592c242c8ca2ac9eab0d">shark::EpsilonHingeLoss</a>, <a class="el" href="classshark_1_1_hinge_loss.html#ae8a772f849e11c33a20b281675b028dd">shark::HingeLoss</a>, <a class="el" href="classshark_1_1_huber_loss.html#afbe4794c082f6ec570a9eab8fb1f8b2a">shark::HuberLoss</a>, <a class="el" href="classshark_1_1_squared_epsilon_hinge_loss.html#ab087f58c1d1c61a18897be4af91a8206">shark::SquaredEpsilonHingeLoss</a>, <a class="el" href="classshark_1_1_squared_hinge_loss.html#afb08d1f581fb2d539c2d98e2138ce916">shark::SquaredHingeLoss</a>, <a class="el" href="classshark_1_1_squared_loss_3_01_output_type_00_01unsigned_01int_01_4.html#a6fe44728c4f9e28a4362c7c3374b1451">shark::SquaredLoss&lt; OutputType, unsigned int &gt;</a>, and <a class="el" href="classshark_1_1_squared_loss_3_01_sequence_00_01_sequence_01_4.html#ac81ef3e0d96e4d1321235e8f843bf363">shark::SquaredLoss&lt; Sequence, Sequence &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00139">139</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202bacad1e0927ebd68caf428c52cc4cecc084a">shark::AbstractCost&lt; LabelT, OutputT &gt;::HAS_FIRST_DERIVATIVE</a>, and <a class="el" href="_flags_8h.html#aabce93ad7a4ffa638fa51321701ad1aa">SHARK_FEATURE_EXCEPTION_DERIVED</a>.</p>

</div>
</div>
<a id="a71706ed4c40d1635db1c372ecf5c8686" name="a71706ed4c40d1635db1c372ecf5c8686"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71706ed4c40d1635db1c372ecf5c8686">&#9670;&#160;</a></span>evalDerivative() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::evalDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a>&#160;</td>
          <td class="paramname"><em>prediction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss and its derivative for a target and a prediction </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target value </td></tr>
    <tr><td class="paramname">prediction</td><td>prediction, typically made by a model </td></tr>
    <tr><td class="paramname">gradient</td><td>the gradient of the loss function with respect to the prediction </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="classshark_1_1_cross_entropy_3_01unsigned_01int_00_01_output_type_01_4.html#a2377944f46db78d25811b70a9b8175ad">shark::CrossEntropy&lt; unsigned int, OutputType &gt;</a>.</p>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00105">105</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_loss.html#a71706ed4c40d1635db1c372ecf5c8686">shark::AbstractLoss&lt; LabelT, OutputT &gt;::evalDerivative()</a>, and <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_abstract_loss.html#a71706ed4c40d1635db1c372ecf5c8686">shark::AbstractLoss&lt; LabelT, OutputT &gt;::evalDerivative()</a>, <a class="el" href="classshark_1_1_variational_autoencoder_error.html#a8b3b2f63448cb50dbcac630b10982341">shark::VariationalAutoencoderError&lt; SearchPointType &gt;::evalDerivative()</a>, and <a class="el" href="classshark_1_1_kernel_s_g_d_trainer.html#a31c7513f29d280ad3165d18100962391">shark::KernelSGDTrainer&lt; InputType, CacheType &gt;::train()</a>.</p>

</div>
</div>
<a id="a7bde41258ced1db72e467f26d2439d0c" name="a7bde41258ced1db72e467f26d2439d0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bde41258ced1db72e467f26d2439d0c">&#9670;&#160;</a></span>evalDerivative() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::evalDerivative </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac52e23c4acfdb2d08b55420101eee787">ConstLabelReference</a>&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a50b1635725e3a6bbb6017a6e3c4a52ca">ConstOutputReference</a>&#160;</td>
          <td class="paramname"><em>prediction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> &amp;&#160;</td>
          <td class="paramname"><em>gradient</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a87fa1fa41bb3c1d5ce75137428724536">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>hessian</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss and its first and second derivative for a target and a prediction </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target value </td></tr>
    <tr><td class="paramname">prediction</td><td>prediction, typically made by a model </td></tr>
    <tr><td class="paramname">gradient</td><td>the gradient of the loss function with respect to the prediction </td></tr>
    <tr><td class="paramname">hessian</td><td>the hessian of the loss function with respect to the prediction </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00122">122</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_cost.html#a3f2ae17818520465f0e73257fd202baca757525584b3fc0a7aa977255fd6d8232">shark::AbstractCost&lt; LabelT, OutputT &gt;::HAS_SECOND_DERIVATIVE</a>, and <a class="el" href="_flags_8h.html#aabce93ad7a4ffa638fa51321701ad1aa">SHARK_FEATURE_EXCEPTION_DERIVED</a>.</p>

</div>
</div>
<a id="ad232712edcc7a2df8bf2bc4936ae93f9" name="ad232712edcc7a2df8bf2bc4936ae93f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad232712edcc7a2df8bf2bc4936ae93f9">&#9670;&#160;</a></span>operator()() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a6e6cc93c4d6599c219d396dcab81e938">BatchLabelType</a> const &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#ac3a1a01831f11b5357d6005837ac245b">BatchOutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>prediction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00173">173</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_loss.html#ad57cb10f610d506e522f707563acabb8">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>.</p>

</div>
</div>
<a id="a235a058270db9218fd889391d0385047" name="a235a058270db9218fd889391d0385047"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a235a058270db9218fd889391d0385047">&#9670;&#160;</a></span>operator()() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class LabelT , class OutputT  = LabelT&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classshark_1_1_abstract_loss.html">shark::AbstractLoss</a>&lt; LabelT, OutputT &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#a1a5e866edf2da03bb50778d2271c01da">LabelType</a> const &amp;&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_loss.html#aff632efe5055d1f07de94a790b222b85">OutputType</a> const &amp;&#160;</td>
          <td class="paramname"><em>prediction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>evaluate the loss for a target and a prediction </p>
<dl class="section user"><dt></dt><dd>convenience operator</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">target</td><td>target value </td></tr>
    <tr><td class="paramname">prediction</td><td>prediction, typically made by a model </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_abstract_loss_8h_source.html#l00170">170</a> of file <a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_abstract_loss.html#ad57cb10f610d506e522f707563acabb8">shark::AbstractLoss&lt; LabelT, OutputT &gt;::eval()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/ObjectiveFunctions/Loss/<a class="el" href="_abstract_loss_8h_source.html">AbstractLoss.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
